package com.jzh.cmhSystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzh.cmhSystem.entity.Enterprise;
import org.apache.ibatis.annotations.Mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EnterpriseMapper extends BaseMapper<Enterprise> {

    List<Enterprise> selectEnterprisesWithSections(String sectionName);

    List<Enterprise> getEnterprisesWithSectionsBySectionNameAndEnterpriseId(
            @Param("sectionName") String sectionName, @Param("enterpriseId") int enterpriseId);
}
